#include "ClassHTCell.h"
//necessary
#include "memory-tools.h"

//TODO testing
PclassHTCell initClassHTCell(PclassElement _class){
	PclassHTCell result=(PclassHTCell)mallocMemory(sizeof(ClassHTCell),"ClassHTCell.c:initClassHTCell:1");
	result->key=_class->name;
	result->class=_class;
	return result;
}

//TODO testing
void freeClassHTCell(PclassHTCell pobj){
	freeClassElement(pobj->class);
	freeMemory(sizeof(ClassHTCell),pobj);
}

//TODO testing
void printClassHTCell(FILE* f, PclassHTCell pcell){
	fprintf(f,"[ %s -> ",pcell->key);
	printClassElement(f,pcell->class);
	fprintf(f,"]");
}

void generateDOTClassHTCell(FILE* f,PclassHTCell pcell,int* start){
	fprintf(f,"subgraph {\n");
	//TODO code here
	fprintf(f,"}\n");
}


